home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
90%
| dexvert
| Hypertext Markup Language File (text/html)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| HTML document text
| default (weak)
| |
99%
| file
| LaTeX document text
| default
| |
98%
| file
| exported SGML document text
| default
| |
97%
| file
| exported SGML document, ASCII text, with CRLF, LF line terminators
| default
| |
80%
| TrID
| HyperText Markup Language with DOCTYPE
| default
| |
19%
| TrID
| HyperText Markup Language
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| text/html
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3c 21 44 4f 43 54 59 50 | 45 20 48 54 4d 4c 20 50 |<!DOCTYP|E HTML P|
|00000010| 55 42 4c 49 43 20 22 2d | 2f 2f 57 33 43 2f 2f 44 |UBLIC "-|//W3C//D|
|00000020| 54 44 20 48 54 4d 4c 20 | 33 2e 32 20 46 69 6e 61 |TD HTML |3.2 Fina|
|00000030| 6c 2f 2f 65 6e 22 3e 0a | 0a 3c 21 2d 2d 43 6f 6e |l//en">.|.<!--Con|
|00000040| 76 65 72 74 65 64 20 77 | 69 74 68 20 4c 61 54 65 |verted w|ith LaTe|
|00000050| 58 32 48 54 4d 4c 20 32 | 30 32 32 20 28 52 65 6c |X2HTML 2|022 (Rel|
|00000060| 65 61 73 65 64 20 4a 61 | 6e 75 61 72 79 20 31 2c |eased Ja|nuary 1,|
|00000070| 20 32 30 32 32 29 20 2d | 2d 3e 0a 3c 48 54 4d 4c | 2022) -|->.<HTML|
|00000080| 20 6c 61 6e 67 3d 22 65 | 6e 22 3e 0a 3c 48 45 41 | lang="e|n">.<HEA|
|00000090| 44 3e 0a 3c 54 49 54 4c | 45 3e 43 6f 6e 74 65 6e |D>.<TITL|E>Conten|
|000000a0| 74 73 20 6f 66 20 2e 2e | 2e 61 6e 64 20 74 68 65 |ts of ..|.and the|
|000000b0| 20 6f 74 68 65 72 20 6f | 6e 65 3c 2f 54 49 54 4c | other o|ne</TITL|
|000000c0| 45 3e 0a 0a 3c 4d 45 54 | 41 20 48 54 54 50 2d 45 |E>..<MET|A HTTP-E|
|000000d0| 51 55 49 56 3d 22 43 6f | 6e 74 65 6e 74 2d 54 79 |QUIV="Co|ntent-Ty|
|000000e0| 70 65 22 20 43 4f 4e 54 | 45 4e 54 3d 22 74 65 78 |pe" CONT|ENT="tex|
|000000f0| 74 2f 68 74 6d 6c 3b 20 | 63 68 61 72 73 65 74 3d |t/html; |charset=|
|00000100| 75 74 66 2d 38 22 3e 0a | 3c 4d 45 54 41 20 4e 41 |utf-8">.|<META NA|
|00000110| 4d 45 3d 22 76 69 65 77 | 70 6f 72 74 22 20 43 4f |ME="view|port" CO|
|00000120| 4e 54 45 4e 54 3d 22 77 | 69 64 74 68 3d 64 65 76 |NTENT="w|idth=dev|
|00000130| 69 63 65 2d 77 69 64 74 | 68 2c 20 69 6e 69 74 69 |ice-widt|h, initi|
|00000140| 61 6c 2d 73 63 61 6c 65 | 3d 31 2e 30 22 3e 0a 3c |al-scale|=1.0">.<|
|00000150| 4d 45 54 41 20 4e 41 4d | 45 3d 22 47 65 6e 65 72 |META NAM|E="Gener|
|00000160| 61 74 6f 72 22 20 43 4f | 4e 54 45 4e 54 3d 22 4c |ator" CO|NTENT="L|
|00000170| 61 54 65 58 32 48 54 4d | 4c 20 76 32 30 32 32 22 |aTeX2HTM|L v2022"|
|00000180| 3e 0a 0a 3c 4c 49 4e 4b | 20 52 45 4c 3d 22 53 54 |>..<LINK| REL="ST|
|00000190| 59 4c 45 53 48 45 45 54 | 22 20 48 52 45 46 3d 22 |YLESHEET|" HREF="|
|000001a0| 64 65 62 75 67 2e 63 73 | 73 22 3e 0a 0a 3c 4c 49 |debug.cs|s">..<LI|
|000001b0| 4e 4b 20 52 45 4c 3d 22 | 6e 65 78 74 22 20 48 52 |NK REL="|next" HR|
|000001c0| 45 46 3d 22 6e 6f 64 65 | 35 5f 6d 6e 2e 68 74 6d |EF="node|5_mn.htm|
|000001d0| 6c 22 3e 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 70 |l">.<LIN|K REL="p|
|000001e0| 72 65 76 69 6f 75 73 22 | 20 48 52 45 46 3d 22 6e |revious"| HREF="n|
|000001f0| 6f 64 65 33 5f 6d 6e 2e | 68 74 6d 6c 22 3e 0a 3c |ode3_mn.|html">.<|
|00000200| 4c 49 4e 4b 20 52 45 4c | 3d 22 75 70 22 20 48 52 |LINK REL|="up" HR|
|00000210| 45 46 3d 22 6e 6f 64 65 | 31 5f 6d 6e 2e 68 74 6d |EF="node|1_mn.htm|
|00000220| 6c 22 3e 0a 3c 4c 49 4e | 4b 20 52 45 4c 3d 22 6e |l">.<LIN|K REL="n|
|00000230| 65 78 74 22 20 48 52 45 | 46 3d 22 6e 6f 64 65 35 |ext" HRE|F="node5|
|00000240| 5f 6d 6e 2e 68 74 6d 6c | 22 3e 0a 3c 2f 48 45 41 |_mn.html|">.</HEA|
|00000250| 44 3e 0a 20 0a 3c 42 4f | 44 59 20 62 67 63 6f 6c |D>. .<BO|DY bgcol|
|00000260| 6f 72 3d 22 23 66 66 66 | 66 66 66 22 20 74 65 78 |or="#fff|fff" tex|
|00000270| 74 3d 22 23 30 30 30 30 | 30 30 22 20 6c 69 6e 6b |t="#0000|00" link|
|00000280| 3d 22 23 39 39 34 34 45 | 45 22 20 76 6c 69 6e 6b |="#9944E|E" vlink|
|00000290| 3d 22 23 30 30 30 30 66 | 66 22 20 61 6c 69 6e 6b |="#0000f|f" alink|
|000002a0| 3d 22 23 30 30 66 66 30 | 30 22 3e 0a 0a 3c 48 32 |="#00ff0|0">..<H2|
|000002b0| 3e 3c 41 20 49 44 3d 22 | 53 45 43 54 49 4f 4e 30 |><A ID="|SECTION0|
|000002c0| 30 30 31 33 30 30 30 30 | 30 30 30 30 30 30 30 30 |00130000|00000000|
|000002d0| 30 30 30 22 3e 0a 2e 2e | 2e 61 6e 64 20 74 68 65 |000">...|.and the|
|000002e0| 20 6f 74 68 65 72 20 6f | 6e 65 3c 2f 41 3e 0a 3c | other o|ne</A>.<|
|000002f0| 2f 48 32 3e 0a 0a 3c 50 | 3e 0a 54 68 65 20 73 65 |/H2>..<P|>.The se|
|00000300| 63 6f 6e 64 20 62 75 67 | 20 69 73 20 68 61 72 64 |cond bug| is hard|
|00000310| 65 72 20 74 6f 20 73 70 | 6f 74 2c 20 73 69 6e 63 |er to sp|ot, sinc|
|00000320| 65 20 66 6f 72 20 6d 6f | 73 74 20 6f 66 20 74 65 |e for mo|st of te|
|00000330| 73 74 20 69 6e 70 75 74 | 73 20 6f 75 72 0d 0a 70 |st input|s our..p|
|00000340| 72 6f 67 72 61 6d 20 77 | 69 6c 6c 20 77 6f 72 6b |rogram w|ill work|
|00000350| 20 63 6f 72 72 65 63 74 | 6c 79 2e 0d 0a 54 68 69 | correct|ly...Thi|
|00000360| 73 20 69 73 20 61 20 74 | 79 70 69 63 61 6c 20 65 |s is a t|ypical e|
|00000370| 78 61 6d 70 6c 65 20 6f | 66 20 61 20 70 72 6f 67 |xample o|f a prog|
|00000380| 72 61 6d 20 62 72 6f 6b | 65 6e 20 66 6f 72 20 62 |ram brok|en for b|
|00000390| 6f 75 6e 64 61 72 79 20 | 63 6f 6e 64 69 74 69 6f |oundary |conditio|
|000003a0| 6e 73 2e 0d 0a 54 6f 20 | 6d 61 6b 65 20 69 74 20 |ns...To |make it |
|000003b0| 65 61 73 69 65 72 20 74 | 6f 20 74 72 61 63 6b 20 |easier t|o track |
|000003c0| 74 68 65 20 70 72 6f 62 | 6c 65 6d 20 73 65 74 0d |the prob|lem set.|
|000003d0| 0a 4d 41 58 4c 49 4e 20 | 74 6f 20 73 6f 6d 65 20 |.MAXLIN |to some |
|000003e0| 73 6d 61 6c 6c 20 69 6e | 74 65 67 65 72 20 28 61 |small in|teger (a|
|000003f0| 72 6f 75 6e 64 20 31 30 | 20 73 68 6f 75 6c 64 20 |round 10| should |
|00000400| 62 65 20 67 6f 6f 64 29 | 2c 0d 0a 72 65 63 6f 6d |be good)|,..recom|
|00000410| 70 69 6c 65 20 74 68 65 | 20 70 72 6f 67 72 61 6d |pile the| program|
|00000420| 2c 20 72 65 73 74 61 72 | 74 20 74 68 65 20 64 65 |, restar|t the de|
|00000430| 62 75 67 67 69 6e 67 20 | 73 65 73 73 69 6f 6e 20 |bugging |session |
|00000440| 61 6e 64 20 73 65 74 20 | 61 20 62 72 65 61 6b 70 |and set |a breakp|
|00000450| 6f 69 6e 74 0d 0a 61 74 | 20 3c 63 6f 64 65 3e 6d |oint..at| <code>m|
|00000460| 61 69 6e 2b 32 38 3c 2f | 63 6f 64 65 3e 2c 20 6a |ain+28</|code>, j|
|00000470| 75 73 74 20 61 66 74 65 | 72 20 61 20 63 68 61 72 |ust afte|r a char|
|00000480| 61 63 74 65 72 20 77 61 | 73 20 72 65 61 64 2e 0d |acter wa|s read..|
|00000490| 0a 53 65 74 20 74 68 69 | 73 20 62 72 65 61 6b 70 |.Set thi|s breakp|
|000004a0| 6f 69 6e 74 20 77 69 74 | 68 20 61 20 63 6f 75 6e |oint wit|h a coun|
|000004b0| 74 20 61 6e 64 20 61 20 | 72 65 71 75 65 73 74 20 |t and a |request |
|000004c0| 0d 0a 74 6f 20 73 68 6f | 77 20 61 20 72 65 63 65 |..to sho|w a rece|
|000004d0| 69 76 65 64 20 63 68 61 | 72 61 63 74 65 72 20 77 |ived cha|racter w|
|000004e0| 69 74 68 0d 0a 3c 42 52 | 3e 0a 3c 49 4d 47 0a 20 |ith..<BR|>.<IMG. |
|000004f0| 20 53 54 59 4c 45 3d 22 | 68 65 69 67 68 74 3a 20 | STYLE="|height: |
|00000500| 31 2e 39 36 65 78 3b 20 | 76 65 72 74 69 63 61 6c |1.96ex; |vertical|
|00000510| 2d 61 6c 69 67 6e 3a 20 | 31 37 36 2e 38 32 65 78 |-align: |176.82ex|
|00000520| 3b 20 22 20 53 52 43 3d | 22 69 6d 67 35 2e 70 6e |; " SRC=|"img5.pn|
|00000530| 67 22 0a 20 41 4c 54 3d | 22 5c 62 65 67 69 6e 7b |g". ALT=|"\begin{|
|00000540| 65 78 6d 70 6c 7d 0a 7b | 5c 74 74 20 6d 61 69 6e |exmpl}.{|\tt main|
|00000550| 2b 32 38 2c 35 3a 62 20 | 26 6c 74 3b 64 30 3d 63 |+28,5:b |<d0=c|
|00000560| 78 7d 0a 5c 65 6e 64 7b | 65 78 6d 70 6c 7d 22 3e |x}.\end{|exmpl}">|
|00000570| 0a 3c 42 52 3e 0a 57 69 | 74 68 20 63 61 72 65 66 |.<BR>.Wi|th caref|
|00000580| 75 6c 79 20 63 68 6f 73 | 65 6e 20 69 6e 70 75 74 |uly chos|en input|
|00000590| 20 74 68 69 73 20 77 69 | 6c 6c 20 73 68 6f 77 20 | this wi|ll show |
|000005a0| 77 68 65 72 65 20 79 6f | 75 20 61 72 65 20 69 6e |where yo|u are in|
|000005b0| 20 74 68 65 0d 0a 70 72 | 6f 67 72 61 6d 20 61 6e | the..pr|ogram an|
|000005c0| 64 20 77 69 6c 6c 20 73 | 6b 69 70 20 75 6e 6e 65 |d will s|kip unne|
|000005d0| 63 65 73 73 61 72 79 20 | 73 74 6f 70 73 20 69 6e |cessary |stops in|
|000005e0| 20 74 68 65 20 73 61 6d | 65 20 74 69 6d 65 2e 0d | the sam|e time..|
|000005f0| 0a 59 6f 75 20 68 61 76 | 65 20 74 6f 20 70 72 6f |.You hav|e to pro|
|00000600| 76 69 64 65 20 61 6e 20 | 69 6e 70 75 74 20 62 79 |vide an |input by|
|00000610| 20 74 79 70 69 6e 67 20 | 69 74 20 79 6f 75 72 73 | typing |it yours|
|00000620| 65 6c 66 2e 0d 0a 52 65 | 6d 65 6d 62 65 72 20 74 |elf...Re|member t|
|00000630| 68 61 74 20 74 6f 20 72 | 65 70 65 61 74 20 74 68 |hat to r|epeat th|
|00000640| 65 20 6c 61 73 74 20 63 | 6f 6d 6d 61 6e 64 20 20 |e last c|ommand |
|00000650| 3c 54 54 3e 3a 63 3c 2f | 54 54 3e 20 69 74 20 69 |<TT>:c</|TT> it i|
|00000660| 73 20 65 6e 6f 75 67 68 | 20 74 6f 20 68 69 74 0d |s enough| to hit.|
|00000670| 0a 52 65 74 75 72 6e 2e | 0d 0a 46 6f 72 20 65 78 |.Return.|..For ex|
|00000680| 65 63 75 74 69 6f 6e 20 | 64 65 66 61 75 6c 74 73 |ecution |defaults|
|00000690| 20 20 77 69 6c 6c 20 75 | 73 65 20 74 68 65 20 6d | will u|se the m|
|000006a0| 6f 73 74 20 72 65 63 65 | 6e 74 6c 79 20 74 79 70 |ost rece|ntly typ|
|000006b0| 65 64 20 63 6f 6d 6d 61 | 6e 64 0d 0a 65 76 65 6e |ed comma|nd..even|
|000006c0| 20 69 66 20 73 6f 6d 65 | 20 6f 74 68 65 72 20 72 | if some| other r|
|000006d0| 65 71 75 65 73 74 73 20 | 77 65 72 65 20 65 78 65 |equests |were exe|
|000006e0| 63 75 74 65 64 20 62 79 | 20 62 72 65 61 6b 70 6f |cuted by| breakpo|
|000006f0| 69 6e 74 73 2e 0a 0a 3c | 50 3e 0a 49 6e 20 6f 72 |ints...<|P>.In or|
|00000700| 64 65 72 20 74 6f 20 73 | 65 65 20 68 6f 77 20 74 |der to s|ee how t|
|00000710| 68 65 20 72 65 63 65 69 | 76 65 64 20 63 68 61 72 |he recei|ved char|
|00000720| 61 63 74 65 72 20 69 73 | 20 70 72 6f 63 65 73 73 |acter is| process|
|00000730| 65 64 20 79 6f 75 20 63 | 61 6e 20 73 69 6e 67 6c |ed you c|an singl|
|00000740| 65 20 73 74 65 70 0d 0a | 77 69 74 68 20 3a 73 2c |e step..|with :s,|
|00000750| 20 77 68 69 63 68 20 77 | 69 6c 6c 20 66 6f 6c 6c | which w|ill foll|
|00000760| 6f 77 20 70 72 6f 67 72 | 61 6d 20 65 78 65 63 75 |ow progr|am execu|
|00000770| 74 69 6f 6e 2e 0d 0a 54 | 68 65 20 72 65 71 75 65 |tion...T|he reque|
|00000780| 73 74 20 3a 6e 20 77 69 | 6c 6c 20 73 69 6e 67 6c |st :n wi|ll singl|
|00000790| 65 20 73 74 65 70 20 6c | 69 6b 65 20 3a 73 20 62 |e step l|ike :s b|
|000007a0| 75 74 20 77 69 6c 6c 0d | 0a 65 78 65 63 75 74 65 |ut will.|.execute|
|000007b0| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 73 20 | functio|n calls |
|000007c0| 61 74 20 66 75 6c 6c 20 | 73 70 65 65 64 20 61 6e |at full |speed an|
|000007d0| 64 20 73 6f 20 68 61 76 | 65 20 74 68 65 0d 0a 65 |d so hav|e the..e|
|000007e0| 66 66 65 63 74 20 6f 66 | 20 73 74 65 70 70 69 6e |ffect of| steppin|
|000007f0| 67 20 6f 76 65 72 20 74 | 68 65 6d 2e 20 42 72 65 |g over t|hem. Bre|
|00000800| 61 6b 70 6f 69 6e 74 73 | 20 73 65 74 20 6f 6e 20 |akpoints| set on |
|00000810| 73 6b 69 70 70 65 64 0d | 0a 6c 65 76 65 6c 73 20 |skipped.|.levels |
|00000820| 73 74 69 6c 6c 20 77 69 | 6c 6c 20 62 65 20 6f 62 |still wi|ll be ob|
|00000830| 65 79 65 64 2e 0a 0a 3c | 50 3e 0a 54 72 61 63 69 |eyed...<|P>.Traci|
|00000840| 6e 67 20 73 6f 6d 65 20 | 74 65 73 74 73 20 69 6e |ng some |tests in|
|00000850| 70 75 74 73 20 77 69 74 | 68 20 74 68 65 20 76 61 |puts wit|h the va|
|00000860| 6c 75 65 20 6f 66 20 74 | 68 65 20 76 61 72 69 61 |lue of t|he varia|
|00000870| 62 6c 65 20 63 6f 6c 20 | 61 72 6f 75 6e 64 0d 0a |ble col |around..|
|00000880| 4d 41 58 4c 49 4e 20 73 | 68 6f 75 6c 64 20 72 65 |MAXLIN s|hould re|
|00000890| 76 65 61 6c 20 74 68 65 | 20 73 65 63 6f 6e 64 20 |veal the| second |
|000008a0| 65 72 72 6f 72 20 73 6f | 6f 6e 20 65 6e 6f 75 67 |error so|on enoug|
|000008b0| 68 2e 20 20 49 66 20 79 | 6f 75 0d 0a 77 61 6e 74 |h. If y|ou..want|
|000008c0| 20 74 6f 20 74 72 79 20 | 69 74 20 79 6f 75 72 73 | to try |it yours|
|000008d0| 65 6c 66 2c 20 64 6f 20 | 6e 6f 74 20 72 65 61 64 |elf, do |not read|
|000008e0| 20 66 75 72 74 68 65 72 | 2e 0a 0a 3c 50 3e 0a 4c | further|...<P>.L|
|000008f0| 6f 6f 6b 69 6e 67 20 61 | 74 20 6c 69 6e 65 20 31 |ooking a|t line 1|
|00000900| 37 20 77 65 20 66 69 6e | 64 20 61 20 73 68 61 72 |7 we fin|d a shar|
|00000910| 70 20 6c 65 73 73 2d 74 | 68 61 6e 20 69 6e 65 71 |p less-t|han ineq|
|00000920| 75 61 6c 69 74 79 20 69 | 6e 20 74 68 65 20 74 65 |uality i|n the te|
|00000930| 73 74 2e 20 49 74 20 73 | 68 6f 75 6c 64 0d 0a 62 |st. It s|hould..b|
|00000940| 65 20 72 65 70 6c 61 63 | 65 64 20 62 79 20 61 20 |e replac|ed by a |
|00000950| 6c 65 73 73 2d 74 68 61 | 6e 2d 65 71 75 61 6c 2d |less-tha|n-equal-|
|00000960| 74 6f 2e 20 4f 74 68 65 | 72 77 69 73 65 2c 20 77 |to. Othe|rwise, w|
|00000970| 68 65 6e 20 74 68 65 20 | 76 61 6c 75 65 20 6f 66 |hen the |value of|
|00000980| 20 63 6f 6c 0d 0a 65 71 | 75 61 6c 73 20 4d 41 58 | col..eq|uals MAX|
|00000990| 4c 49 4e 2c 20 61 6e 64 | 20 79 6f 75 72 20 69 6e |LIN, and| your in|
|000009a0| 70 75 74 20 69 73 20 22 | 72 69 67 68 74 22 2c 20 |put is "|right", |
|000009b0| 74 68 65 20 70 72 6f 67 | 72 61 6d 20 69 73 20 74 |the prog|ram is t|
|000009c0| 72 79 69 6e 67 20 74 6f | 20 72 65 61 64 2c 20 69 |rying to| read, i|
|000009d0| 6e 0d 0a 6c 69 6e 65 73 | 20 32 38 20 61 6e 64 20 |n..lines| 28 and |
|000009e0| 33 31 2c 20 66 72 6f 6d | 20 74 68 65 20 6c 6f 63 |31, from| the loc|
|000009f0| 61 74 69 6f 6e 20 3c 63 | 6f 64 65 3e 26 61 6d 70 |ation <c|ode>&|
|00000a00| 3b 74 61 62 73 5b 63 6f | 6c 5d 3c 2f 63 6f 64 65 |;tabs[co|l]</code|
|00000a10| 3e 2c 0d 0a 77 68 69 63 | 68 20 69 73 20 6f 6e 65 |>,..whic|h is one|
|00000a20| 20 70 61 73 74 20 74 68 | 65 20 65 6e 64 20 6f 66 | past th|e end of|
|00000a30| 20 74 68 65 20 61 72 72 | 61 79 2e 0d 0a 54 68 65 | the arr|ay...The|
|00000a40| 20 72 65 6d 61 69 6e 69 | 6e 67 20 61 6e 61 6c 79 | remaini|ng analy|
|00000a50| 73 69 73 20 6f 66 20 74 | 68 69 73 20 62 75 67 20 |sis of t|his bug |
|00000a60| 69 73 20 6c 65 66 74 20 | 61 73 20 61 6e 20 65 78 |is left |as an ex|
|00000a70| 65 72 63 69 73 65 20 74 | 6f 20 74 68 65 20 72 65 |ercise t|o the re|
|00000a80| 61 64 65 72 2e 0a 0a 3c | 50 3e 0a 0a 3c 48 52 3e |ader...<|P>..<HR>|
|00000a90| 0a 0a 3c 2f 42 4f 44 59 | 3e 0a 3c 2f 48 54 4d 4c |..</BODY|>.</HTML|
|00000aa0| 3e 0a | |>. | |
+--------+-------------------------+-------------------------+--------+--------+